import 'package:flutter/material.dart';

class IndexNavigatorItem {
  final String title;
  final String imageUri;
  final void Function(BuildContext context) onTap;

  IndexNavigatorItem(this.title, this.imageUri, this.onTap);
}

List<IndexNavigatorItem> navigatorItemList = [
  IndexNavigatorItem(
    '整租',
    'images/home.svg',
    (context) => (BuildContext context) {
      Navigator.of(context).pushNamed('/login');
    },
  ),
  IndexNavigatorItem(
    '合租',
    'images/mine.svg',
    (context) => (BuildContext context) {
      Navigator.of(context).pushNamed('/login');
    },
  ),
  IndexNavigatorItem(
    '地图找房',
    'images/map.svg',
    (context) => (BuildContext context) {
      Navigator.of(context).pushNamed('/login');
    },
  ),
  IndexNavigatorItem(
    '去出租',
    'images/count.svg',
    (context) => (BuildContext context) {
      Navigator.of(context).pushNamed('/login');
    },
  ),
];
